package moj_pakiet;

import java.sql.SQLException;
import java.util.ArrayList;

import javax.jws.WebService;

@WebService(targetNamespace = "http://moj_pakiet/", portName = "IReklamyPort", serviceName = "IReklamyService")
public class IReklamy {
	ArrayList<String> adresy;
public ArrayList<String> getAdress() {
	adresy= new ArrayList<String>();
	for(int i=0;i<10;i++){
		Klient kl= new Klient();
		try {
			kl.pobierzDaneKlientaPoId(i);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		if(kl.email.equals(null) || kl.email.equals("")){
			
		}else{
			adresy.add(kl.email);	
		}
		
	}
	return adresy;
	//Klient kl= new Klient();
	//kl.p
}

}
